package com.hy.generator.param;

import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BuildParam {

    /**
     * 小写字母+中划线
     */
    @Pattern(regexp = "^[a-z]+(-[a-z]+)*$", message = "必须为小写字母和中划线组合，且中划线不能在开头或结尾")
    private String projectCode;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 全小写
     */

    @Pattern(regexp = "^[a-z]+$", message = "必须为全小写字母")
    private String packageCode;

}
